<template>
	<view>
		<tn-nav-bar fixed alpha customBack>
			<view slot="back" class='tn-custom-nav-bar__back' @click="goBack">
				<text class='icon tn-icon-left'></text>
				<text class='icon tn-icon-home-capsule-fill'></text>
			</view>
		</tn-nav-bar>
		<web-view :src="url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				webviewStyles: {
					progress: {
						color: '#FF3333'
					}
				},
				url:'',
				res: "",
				content:{}
			}
		},
		onLoad: function(option) {
			this.res = option.info
		},
		mounted() {
			this.loadData();
		},
		methods: {
			loadData() {
	
				//加载内容图片
				this.content=JSON.parse(this.res);
				console.log(this.content.content)
				this.url = this.content.content.replace(/<\/?.+?\/?>/g,'');
			}
			
		},
	}
</script>
